package com.zmn.oms.dubbo.interfaces.zmn.normal.attachment;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.dubbo.dto.common.work.OrderAttachmentDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author sunlife
 * @date:2020/11/11 7:18 下午
 * description:
 */
@Api(value = "工单附件接口", tags = {"工单附件"})
public interface OrderAttachmentRemoteService {

    @ApiOperation(value = "获取附件状态")
    ResponseDTO<Integer> getAttachementResultByOrderIdAndType(@ApiParam(value = "工单ID") @NotNull(message = "工单号不能为空") Long workId, @ApiParam(value = "附件类型") @NotNull(message = "附件类型不能为空") Integer type);

    @ApiOperation(value = "获取附件信息")
    ResponseDTO<List<OrderAttachmentDRO>> getAttachementByOrderIdAndType(@ApiParam(value = "工单ID") @NotNull(message = "工单号不能为空") Long workId, @ApiParam(value = "附件类型, 为空则返回所有附件")Integer type);
}
